---
description: Enforces classes decorated with @Injectable to use the 'providedIn' property.
options: null
optionsDescription: Not configurable.
rationale: Using the 'providedIn' property makes classes decorated with @Injectable tree shakeable.
ruleName: use-injectable-provided-in
type: functionality
typescriptOnly: true
layout: rule
title: 'Rule: use-injectable-provided-in'
optionsJSON: 'null'
---